package org.alex.samples.dao;

import java.util.List;

import org.alex.samples.model.ExamTestType;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
@Repository
@Transactional
public class ExamTestTypeDAOImpl extends BaseHibernateDAO<ExamTestType> implements IExamTestTypeDAO  {

	@SuppressWarnings("unused")
	private static final String UserJDBC = null;
	@Autowired
	private SessionFactory sessionFactory;

	public Session getSession() {
		return this.sessionFactory.getCurrentSession();

	}
	
	@Override
	public List<ExamTestType> findAllType() {
		return this.find("from ExamTestType");
	}
	
}
